]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyring: Don't allow ellipsization of Password label
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 18 Sep 2013 19:39:23 +0000 (21:39 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 19 Sep 2013 05:53:57 +0000 (07:53 +0200)
We don't want the password entry to grow when entering more characters
that fit the available width; as labels' ClutterText ellipsizes by
default, the password label allows the entry to grow by shrinking.
Setting the appropriate ellipsize mode fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=708324

js/ui/components/keyring.js

index 521b91830e252567ac2aa7559985f92a4fa65124..a1a626798d558a892718f7ac0f86d47fbb2561bf 100644 (file)
@@ -89,6 +89,7 @@ const KeyringDialog = new Lang.Class({
         if (this.prompt.password_visible) {
             let label = new St.Label({ style_class: 'prompt-dialog-password-label' });
             label.set_text(_("Password:"));
+            label.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
             layout.pack(label, 0, row);
             layout.child_set(label, { x_expand: false, y_fill: false,
                                       x_align: Clutter.TableAlignment.START });